import axios from "axios";
const baseUrl = "/yidong/";
function ajax_get(path: any, params = {}) {
  return axios.get(baseUrl + path, { params });
}
function ajax_post(path: any, params = {}) {
  return axios.post(baseUrl + path, params);
}

// 登录
let getLogin = (params) => ajax_post("login", params);

let getFlows = (params) => ajax_get("getFlow", params);

let getComputeds = (params) => ajax_get("getComputed",params)

export { getLogin, getFlows,getComputeds };
